package com.cooperate.fly.mapper;

import com.cooperate.fly.bo.Question;
import com.cooperate.fly.bo.QuestionWithBLOBs;
import com.cooperate.fly.datasource.SqlMapper;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

@SqlMapper
public interface QuestionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(QuestionWithBLOBs record);

    int insertSelective(QuestionWithBLOBs record);

    QuestionWithBLOBs selectByPrimaryKey(Integer id);

    List<QuestionWithBLOBs> selectAll();

    Page<QuestionWithBLOBs> selectPage(Pageable pageRequest);

    int updateByPrimaryKeySelective(QuestionWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(QuestionWithBLOBs record);

    int updateByPrimaryKey(Question record);
}